package br.com.insula.twithis.processor.impl;

import javax.microedition.pim.ToDo;

import net.rim.blackberry.api.pdap.BlackBerryToDo;
import br.com.insula.twithis.processor.Payload;
import br.com.insula.twithis.processor.Processor;

public class ToDoProcessor implements Processor {

	public Payload getPayload(Object context) {
		BlackBerryToDo todo = (BlackBerryToDo) context;

		String summary = todo.getString(ToDo.SUMMARY, ToDo.ATTR_NONE);

		return new MessagePayload(summary);
	}

}
